package com.cbn.ibcp.jishiting.gs.cms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cbn.ibcp.jishiting.gs.cms.domain.NodeVideo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.Date;

@Mapper
public interface NodeVideoMapper extends BaseMapper<NodeVideo> {
    /**
     * @param orgCode
     * @param startTime
     * @param endTime
     * @param injectStatus
     * @return
     */
    Integer selectTotalCreateInjectCount(@Param("orgCode") String orgCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("injectStatus") Integer injectStatus);


    /**
     * @param orgCode
     * @param startTime
     * @param endTime
     * @return
     */
    Integer selectTotalCreateInjectFailureCount(@Param("orgCode") String orgCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    /**
     * @param orgCode
     * @param startTime
     * @param endTime
     * @param injectStatus
     * @return
     */
    Integer selectTotalUpdateInjectCount(@Param("orgCode") String orgCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("injectStatus") Integer injectStatus);


    /**
     * @param orgCode
     * @param startTime
     * @param endTime
     * @return
     */
    Integer selectTotalUpdateInjectFailureCount(@Param("orgCode") String orgCode, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
}
